how to find generator of cyclic group